<!DOCTYPE html>
<html>
<head>
  <title>奖品管理</title>
  <include file="./App/Admin/View/Public/header.html" />
  <include file="./App/Admin/View/Public/menu.html" />
  <include file="./App/Admin/View/Public/js.html" />
</head>
<body>
  <div class="templatemo-content col-1 light-gray-bg">
        <div class="templatemo-top-nav-container">
            <div class="row">
                <nav class="templatemo-top-nav col-lg-12 col-md-12">
                    <ul class="text-uppercase">
                        <li><a href="__URL__/prizes" class="active">奖品管理</a></li>
                        <li><a href="__URL__/prizes">修改奖品信息  <i class="glyphicon glyphicon-remove"></i></a></li>
                    </ul>  
                </nav> 
            </div>
        </div>
    <div class="templatemo-content-container">
      <div class="templatemo-content-widget no-padding">
        <div class="panel panel-default table-responsive">
          <table class="table table-striped table-bordered templatemo-user-table">
            <div class="container-fluid">  
              <div class="row">    
                <div class="col-md-1">
                  </div>
                    <div class="col-md-10">
                      <form class="form-horizontal" action="{:U(doUpdate)}"  enctype="multipart/form-data" method="post">           
            <div class="form-group">
            <input  type="hidden"  name="p_id" value="{$prizeInfos.p_id}">
            </div>
            <div class="form-group">
            <label for="p_name">奖品名称</label>
            <input type="text" name="p_name" id="p_name" class="form-control" value="{$prizeInfos.p_name}">
            </div>
            <div class="form-group">
            <label for="p_explanation">奖品说明</label>
            <input type="text" name="p_explanation" id="p_explanation" class="form-control" value="{$prizeInfos.p_explanation}">
            </div>
            <div class="form-group">
            <label for="p_value">运动值</label>
            <input type="text" name="p_value" id="p_value" class="form-control" value="{$prizeInfos.p_value}">
            </div>            
            <div class="form-group">
            <label for="p_pic1">奖品图片 1 </label>
            <img src="__PUBLIC__/upload/{$prizeInfos.p_pic1}" class="img-circle" style="width: 110px; height: 110px;background-color:#5f5f5f">
            <input type="file" name="file1"  value="{$prizeInfos.p_pic1}" class="btn  btn-primary" style="width: 95px; height: 40px;background-color:#ffffff">
            </div>
            <div class="form-group">
            <label for="p_pic2">奖品图片 2 </label>
            <img src="__PUBLIC__/upload/{$prizeInfos.p_pic2}" class="img-circle" style="width: 110px; height: 110px;background-color:#5f5f5f">
            <input type="file" name="file2"  value="{$prizeInfos.p_pic2}" class="btn  btn-primary" style="width: 95px; height: 40px;background-color:#ffffff">
            </div> 
            <div align="center">        
            <button type="submit" name="submit" class="btn btn-primary">保存</button>
            <a class="btn btn-default" href="__URL__/prizes">返回</a>
            </div>
      </table>
    </form>
  </body>
</html>

